#!/bin/bash

BTC0=6636.19
URL='https://api.kraken.com/0/public/Ticker?pair=BTCEUR'
BTC1=`wget -O - -q $URL 2>/dev/null | sed 's/.*"c":\["//' | sed 's/\.\(..\).*/.\1/'`
DIF=`echo "scale=2;($BTC1-$BTC0)" | bc`
echo curent price $BTC1 difference $DIF
